package la.bbs558.entity.params;

import com.fasterxml.jackson.annotation.JsonProperty;
import la.bbs558.aop.valid.Valid;
import lombok.Data;

/**
 * 用户注册参数
 *
 * @author weihanmin
 * @since 2023-12-15 11:13:34
 */
@Data
public class UserSignUpParams {
    //用户名
    private String username;
    //昵称
    private String nickname;
    //密码
    @Valid(msg = "密码不能为空")
    private String password;
    //头像
    private String avatar;
    //邮箱
    private String email;
    //联系方式
    private String tel;
    @Valid(msg = "邀请码不能为空")
    private String inviteCode;
//    @Valid(msg = "验证码不能为空")
    private String verifyCode;
    //签名
    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private String sign;
}

